package gdt.entity.embeddable;

import java.io.Serializable;

import javax.persistence.Embeddable;

import org.hibernate.validator.Email;
import org.hibernate.validator.NotEmpty;
import org.hibernate.validator.Pattern;

@Embeddable
public class Contact implements Serializable{

	private static final long serialVersionUID = 1L;

	@NotEmpty
	private String name;
	
	@Email
	private String email;
	
	@Pattern(regex="[0-9]{0,50}")
	private String mobile;
	
	@Pattern(regex="[0-9]{0,50}")
	private String phone;
	
	@Pattern(regex="[0-9]{0,50}")
	private String fax;
	
	public Contact() {
		super();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}
	
}
